<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表单标签</title>
</head>
<body>
    <!-- GET/POST是两种提交数据的方式 -->
    <form action="#" name="my_form" method="POST"></form>
    <fieldset>
        <legend>基本信息</legend>
        <label for="name">姓名</label>
        <!-- input 单行文本输入框 -->
        <input type="text" name="trunname" id="trueid" value="测试数据">
        <label for="nickname">昵称</label>
        <input type="text" name="nickname" id="nickname">
        <label for="password">密码</label>
        <input type="password" name="password" id="password">
        <!-- type="password" 使输入密码隐藏 -->
        <label for="female">女</label>
        <input type="radio" name="sex" id="female">
        <label for="male">男</label>
        <input type="radio" name="sex" id="male" checked>
    </fieldset>
    <fieldset>
        <legend>附加信息</legend>
        <label>兴趣爱好
        <input type="checkbox" name="favorite" id="favorite">运动
        <input type="checkbox" name="favorite" id="favorite">音乐
        </label>
        <label for="university">毕业学校
            <select name="university" id="university">
                <optgroup label="全国一流大学">
                <option value="清华">清华大学</option>
                <option value="北大">北京大学</option>
                </optgroup>
                <optgroup label="省属一流大学">
                <option value="南大">南昌大学</option>
                </optgroup>
                <optgroup label="地方院校">
                <option value="九院" selected>九江学院</option>
                </optgroup>
            </select>
        </label>
    </fieldset>
    <fieldset>
        <legend>附件(通过JS变成富文本编辑器)</legend>
        <input type="file" name="upload_file" id="upload_file">
        <input type="hidden" name="user" id="admin">
    </fieldset>
    <fieldset>
        <legend>备注</legend>
        <!-- 多行文本输入框 -->
        <textarea name="note" id="note" cols="80" rows="10"></textarea>
        <input type="submit" value="提交">
        <input type="reset" value="重置">
        <input type="image" src="https://www.jju.edu.cn/images/chuxin.jpg">
        <input type="button" value="无默认行为按钮">
        <button type="submit">Button提交</button>
        <button type="reset">Button重置</button>
    </fieldset>
    <br><br>
    <a href="../index.html">返回首页</a>
</body>
</html>